<template>
  <div class="forbidden">
    <div class="content">
      <h1>403</h1>
      <h2>访问被拒绝</h2>
      <p>抱歉，您没有权限访问此页面</p>
      <el-button type="primary" @click="goBack">返回首页</el-button>
    </div>
  </div>
</template>

<script>
export default {
  name: 'ForbiddenPage'
}
</script>

<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

const goBack = () => {
  router.push('/')
}
</script>

<style scoped>
.forbidden {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f3f3f3;
}

.content {
  text-align: center;
}

h1 {
  font-size: 120px;
  margin: 0;
  color: #f56c6c;
}

h2 {
  font-size: 30px;
  margin: 20px 0 10px;
  color: #666;
}

p {
  color: #999;
  margin-bottom: 30px;
}
</style> 